﻿@*
    For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
*@
@{
    ViewData["Title"] = "欢迎";
}
<h3>欢迎</h3>
<ul>
    @for(int i = 0; i < (int)ViewData["Count"]; ++i)
    {
        <li>@ViewData["Message"]</li>
    }
</ul>
@using Microsoft.AspNetCore.Http;
@{
    string username = Context.Session.GetString("username");
}
<h3>欢迎 @username</h3>